package com.tz.tzgw.pc.web.model;

import javax.persistence.Column;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

public class Article {
    private Long id;
    @NotEmpty(message = "标题不能为空")
    private String title;
    @Min(value = 1, message = "请选择栏目")
    private Long columnid;
    private String author;
    private String resource;
    @NotEmpty(message = "缩略图不能为空")
    private String thumb;
    private String video;
    private String content;
    private Integer hit;
    private Integer istop;
    private Integer istui;
    private Integer status;
    private Integer sort_order;

    private String create_at;

    private String formattedDate;

    // 新增字段 columnname，并添加对应的 @Column 注解
    @Column(name = "columnname")
    private String columnname;

    // 新增 setter 方法 setColumnName，并添加 @Column 注解
    @Column(name = "columnname")
    public void setColumnname(String columnname) {
        this.columnname = columnname;
    }

    public String getColumnname() {
        return columnname;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getColumnid() {
        return columnid;
    }

    public void setColumnId(Long columnid) {
        this.columnid = columnid;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }




    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getHit() {
        return hit;
    }

    public void setHit(Integer hit) {
        this.hit = hit;
    }

    public Integer getIstop() {
        return istop;
    }

    public void setIstop(Integer istop) {
        this.istop = istop;
    }

    public Integer getIstui() {
        return istui;
    }

    public void setIstui(Integer istui) {
        this.istui = istui;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort_order() {
        return sort_order;
    }

    public void setSort_order(Integer sort_order) {
        this.sort_order = sort_order;
    }

    public String getCreate_at() {
        return create_at;
    }

    public void setCreate_at(String create_at) {
        this.create_at = create_at;
    }

    public String getFormattedDate() {
        return formattedDate;
    }

    public void setFormattedDate(String formattedDate) {
        this.formattedDate = formattedDate;
    }
}